package aop.recipe.model;

import java.sql.SQLException;
import java.util.HashMap;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

@Service
public class ReportService {
	@Resource(name="reportDao")
	private ReportDao reportDao;
	public void addRankingRecipe(ReportVO vo) throws SQLException{
		String date=reportDao.getRankingDate();
		vo.setRe_Date(date);
		reportDao.addRankingRecipe(vo);
	}
	public int RankingRecipeCheckByNo(HashMap map) throws SQLException{
		return reportDao.RankingRecipeCheckByNo(map);
	}
	public void updateRankingRecipeCount(int r_no) throws SQLException{
		reportDao.updateRankingRecipeCount(r_no);
	}
	public int rankingRecipeCheckByWord(HashMap hmap) throws SQLException{
		return reportDao.rankingRecipeCheckByWord(hmap);
	}
	public void updateRankingRecipeCountByWord(HashMap hmap) throws SQLException{
		reportDao.updateRankingRecipeCountByWord(hmap);
	}
}
